import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
// #1
/* import { useUserStore } from './user'
export { useUserStore } */

const pinia = createPinia()
pinia.use(persist)

export default pinia

// !导入 useUserStore 再按需导出，这儿完全和 #1 处的代码等价
// export { useUserStore, a, b } from './user'

// !把 user 中的所有按需导出的都按需导入并按需导出
export * from './user'
export * from './modules/consult'
